﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DcsGauges.Gui.Gauges.Panels;
using DcsGauges.DataStructures;

namespace DcsGauges.Gui.Views.Concrete
{
    class LightsControlView : View
    {
        #region Fields & Properties

        private LightsControlPanel panel                = null;
        public LightsControlPanel LightControlPanel
        {
            get { return this.panel; }
        }

        #endregion


        #region Constructors

        public LightsControlView ()
	    {
            this.panel = new LightsControlPanel(null, URect.Full);
	    }

        #endregion


        #region Overrides

        public override void Render(Microsoft.Xna.Framework.Graphics.SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.GraphicsDevice device, Microsoft.Xna.Framework.Rectangle parentRect, float globalZIndex)
        {
            this.panel.Render(spriteBatch, device, parentRect, globalZIndex);
        }

        public override void InjectMouseEvent(Input.Events.MouseEvent evt, Microsoft.Xna.Framework.GameTime gt)
        {
            this.panel.InjectMouseEvent(evt, gt);
        }

        #endregion
    }
}
